package com.fenghongzhang.day014;

import android.app.Application;

import com.squareup.leakcanary.LeakCanary;
import com.uuzuche.lib_zxing.activity.ZXingLibrary;

public class App extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        ZXingLibrary.initDisplayOpinion(this);


        //部署leakcanary,定位内存泄漏
        if(!LeakCanary.isInAnalyzerProcess(this)){//如果没有部署
            LeakCanary.install(this);//部署
        }
    }
}
